import request from '@/utils/request'

// 查询返修退料单体列表
export function listReturnline(query) {
  return request({
    url: '/rr/returnline/list',
    method: 'get',
    params: query
  })
}
// 查询返修退料单体列表 不分页
export function getLineList(query) {
  return request({
    url: '/rr/returnline/getLineList',
    method: 'get',
    params: query
  })
}

// 查询返修退料单体详细
export function getReturnline(id) {
  return request({
    url: '/rr/returnline/' + id,
    method: 'get'
  })
}

// 新增返修退料单体
export function addReturnline(data) {
  return request({
    url: '/rr/returnline',
    method: 'post',
    data: data
  })
}

// 修改返修退料单体
export function updateReturnline(data) {
  return request({
    url: '/rr/returnline',
    method: 'put',
    data: data
  })
}

// 删除返修退料单体
export function delReturnline(id) {
  return request({
    url: '/rr/returnline/' + id,
    method: 'delete'
  })
}
